home *** CD-ROM | disk | FTP | other *** search
- /************************************************/
- /* Sample DLL's */
- /* Copyright © Vincent Parsons 1989. */
- /************************************************/
- /* DLL code for MPW C 3.0 or THINK C 4.0 */
- /* with Excel for the Macintosh 2.2 */
- /* and Microsoft C 5.1 */
- /* with Excel for Windows 2.1 */
- /************************************************/
- /* SampHHH is an example of two data type H */
- /* inputs and one data type H output. The */
- /* output is the product of the two type H */
- /* inputs. */
- /************************************************/
- /* =REGISTER("SampDLLs","SampHHH","HHH") */
- /* for both the Mac and the PC. */
- /************************************************/
-
- #include "DLL.h"
-
- #if applec
- #include <Types.h>
-
- #elif MSDOS
- #include <windows.h>
-
- #endif
-
- #if THINK_C
- pascal unsigned short main(unsigned short u1, unsigned short u2); /* prototype */
-
- pascal unsigned short main(u1, u2)
- unsigned short u1;
- unsigned short u2;
-
- #elif applec
- pascal unsigned short SampHHH(unsigned short u1, unsigned short u2)
-
- #elif MSDOS
- unsigned short far pascal SampHHH(unsigned short u1, unsigned short u2)
- #endif
- {
- return ( u1 * u2 );
- }
-
- /************************************************/
-